checkout: Always do chmod even in _MODE_USER
authorColin Walters <walters@verbum.org>
Tue, 1 Apr 2014 17:07:17 +0000 (13:07 -0400)
committerColin Walters <walters@verbum.org>
Tue, 1 Apr 2014 17:07:17 +0000 (13:07 -0400)
commit7bd00e30050b516e11b945358999845fa7e8387d
tree05ba23b58669476de1c721cb440ee474fb82bb0d
parent956b18ace77edd6db1344bac8e6231b8dda605e3
checkout: Always do chmod even in _MODE_USER

The previous commit here changed things so that we do mkdir(x, 0700),
then fchmod later only if we created the directory.

However the logic was incorrect; we still need to chmod even in
MODE_USER if we created the directory.
src/libostree/ostree-repo-checkout.c